using UnityEngine;
using System.Collections;

public class SplashVideo : MonoBehaviour
{
	public MovieTexture movTexture;
	public string scene;
    void Start()
	{
        renderer.material.mainTexture = movTexture;
        movTexture.Play();
    }
	
	void Update()
	{
		if(!movTexture.isPlaying)
		{
			Application.LoadLevel(scene);
		}
	}
}
